<!DOCTYPE html>
<!--[if IE 9]>         <html class="ie9 no-focus"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-focus"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <title>{block name='title'}管理员{/block}</title>
        <meta name="description" content="">
        <meta name="author" content="pixelcave">
        <meta name="robots" content="noindex, nofollow">
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1.0">
        <link rel="stylesheet" id="css-main" href="/app/common/view/xui/assets/css/oneui.min.css">
        <link rel="stylesheet" id="css-theme" href="/app/common/view/xui/assets/css/themes/flat.min.css">
        <script type="text/javascript" src="/public/libs/jquery/jquery-1.9.1.min.js"></script>
        <script type="text/javascript" src="/public/libs/layer/layer.js"></script>
        <script type="text/javascript" src="/public/libs/vue/vue.js"></script>
        <script type="text/javascript" src="/app/common/view/app.js"></script> 
        <script type="text/javascript" src="/app/common/view/xui/assets/js/oneui.min.js"></script>
        {notempty name="m"}
        <script type="text/javascript">
            app.init('{$m}');//初始化模块
        </script>
        {/notempty}
    </head>
    <body>
        <div id="page-container"  {if condition='$setlayout.isview==1'}class="sidebar-l sidebar-o side-scroll header-navbar-fixed"{/if}>
            {if condition='$setlayout.isview==1'}
            <!-- Side Overlay-->
            <aside id="side-overlay">
                <!-- Side Overlay Scroll Container -->
                <div id="side-overlay-scroll">
                    <!-- Side Header -->
                    <div class="side-header side-content">
                        <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                        <button class="btn btn-default pull-right" type="button" data-toggle="layout" data-action="side_overlay_close">
                            <i class="fa fa-times"></i>
                        </button>
                        <span class="font-w600 push-10-l">{$user->username|default=''}(<a href="{:url('/admin/login/logout')}">退出</a>)</span>
                    </div>
                    <!-- END Side Header -->

                    <!-- Side Content -->
                    <div class="side-content remove-padding-t">
                        <!-- Block -->
                        <div class="block pull-r-l">
                            <div class="block-header bg-gray-lighter">
                                <ul class="block-options">
                                    <li>
                                        <button type="button" data-toggle="block-option" data-action="refresh_toggle" data-action-mode="demo"><i class="si si-refresh"></i></button>
                                    </li>
                                    <li>
                                        <button type="button" data-toggle="block-option" data-action="content_toggle"></button>
                                    </li>
                                </ul>
                            </div>
                            <div class="block-content">
                                
                            </div>
                        </div>
                        <!-- END Block -->
                    </div>
                    <!-- END Side Content -->
                </div>
                <!-- END Side Overlay Scroll Container -->
            </aside>
            <!-- END Side Overlay -->

            <!-- Sidebar -->
            <nav id="sidebar">
                <!-- Sidebar Scroll Container -->
                <div id="sidebar-scroll">
                    <!-- Sidebar Content -->
                    <!-- Adding .sidebar-mini-hide to an element will hide it when the sidebar is in mini mode -->
                    <div class="sidebar-content">
                        <!-- Side Header -->
                        <div class="side-header side-content bg-white-op">
                            <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                            <button class="btn btn-link text-gray pull-right hidden-md hidden-lg" type="button" data-toggle="layout" data-action="sidebar_close">
                                <i class="fa fa-times"></i>
                            </button> 
                            <a class="h5 text-white" href="{$viewurl}">
                                <span class="h4 font-w600 sidebar-mini-hide">{$user->username|default=''}</span>
                            </a>
                        </div>
                        <!-- END Side Header -->

                        <!-- Side Content -->
                        <div class="side-content">
                            <ul class="nav-main">
                                {notempty name="menus"}
            					{volist name="menus" id="item"}
                                <li class="{if condition="$item.current=='active'"}open{/if}">
                                    <a class="nav-submenu" data-toggle="nav-submenu" href="#"><i class="si {$item.class|default='si-wrench'}"></i><span class="sidebar-mini-hide">{$item.title}</span></a>
                                    <ul>
                                    	{volist name="item.pagelink" id="link"}
                                        <li>
                                            <a href="{$link.link}" class="{$link.current}">{$link.title}</a>
                                        </li>
                                        {/volist}  
                                    </ul>
                                </li>
                                {/volist}
            					{/notempty}
                            </ul>
                        </div>
                        <!-- END Side Content -->
                    </div>
                    <!-- Sidebar Content -->
                </div>
                <!-- END Sidebar Scroll Container -->
            </nav>
            <!-- END Sidebar -->

            <!-- Header -->
            <header id="header-navbar" class="content-mini content-mini-full">
                <!-- Header Navigation Right -->
                <ul class="nav-header pull-right">
                    <li>
                        <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                        <button class="btn btn-default" data-toggle="layout" data-action="side_overlay_toggle" type="button">
                            <i class="fa fa-tasks"></i>
                        </button>
                    </li>
                </ul>
                <!-- END Header Navigation Right -->

                <!-- Header Navigation Left -->
                <ul class="nav-header pull-left">
                    <li class="hidden-md hidden-lg">
                        <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                        <button class="btn btn-default" data-toggle="layout" data-action="sidebar_toggle" type="button">
                            <i class="fa fa-navicon"></i>
                        </button>
                    </li>
                    <li class="hidden-xs hidden-sm">
                        <!-- Layout API, functionality initialized in App() -> uiLayoutApi() -->
                        <button class="btn btn-default" data-toggle="layout" data-action="sidebar_mini_toggle" type="button">
                            <i class="fa fa-ellipsis-v"></i>
                        </button>
                    </li> 
                    <li class="js-header-search header-search"> 

                        {volist name="modules" id="item"}
                        	<button onclick="location.href='{$item->viewurl}'" class="btn btn-default {if condition='$m==$item->modulename'}active{/if}" type="button" value="{$item->name}">
                        		{$item->name}
                        	</button>
				        {/volist}  
                    </li>
                </ul>
                <!-- END Header Navigation Left -->
            </header>
            <!-- END Header -->
            {/if}

            <main id="main-container">
                {notempty name="setnav"}
                {if condition="$setnav.isview==true"}
                <div class="bg-gray-lighter" style="height: 40px; line-height: 40px;padding-left: 10px">
                    <ol class="breadcrumb">
                    <li><i class="fa fa-map-marker"></i></li>
                                <li><a class="link-effect" href="{:url('/admin/index/index')}">首页</a></li>
                                <li><a class="link-effect" href="javascript:void(0);">{notempty name="modulename"}{$modulename}{/notempty}</a></li>
                                <li><a class="link-effect" href="javascript:void(0);">{notempty name="title"}{$title}{/notempty}</a></li>
                    </ol>
                </div>
                {/if}
                {/notempty}
                {notempty name="leftblock"}
                <div class="col-sm-5 col-lg-2">
                    <!-- Collapsible Inbox Navigation (using Bootstrap collapse functionality) -->
                    <button class="btn btn-block btn-primary visible-xs push" data-toggle="collapse" data-target="#inbox-nav" type="button">Navigation</button>
                    <div class="collapse navbar-collapse remove-padding" id="inbox-nav">
                        <!-- Inbox Menu -->
                        <div class="block">
                            <div class="block-header bg-gray-lighter">
                                <h3 class="block-title">{$leftblock.title|default=''}</h3>
                            </div>
                            <div class="block-content"> 
                                {include file="$leftblock.template"}
                            </div>
                        </div>
                    </div>
                </div>

            <div class="col-sm-7 col-lg-10">
                <div class="block">
                {/notempty}
               
               {notempty name='setblock'}
                <div class="block-content">
                    {block name='content'}{/block}
                </div>
               {/notempty}
               {empty name='setblock'}
                    {empty name="leftblock"} 
                <div class="content">
                    <div class="block">
                    {/empty} 
                        {notempty name="navs"}
                        <ul class="nav nav-tabs">
                            {notempty name="navs"}
                            {volist name="navs" id="nav"}
                            <li class="{$nav.class}"><a href="{$nav.href}" >{$nav.title}</a></li>
                            {/volist} 
                            {/notempty}
                            {notempty name='setoption'}
                            {if condition='$setoption.isview==true'}
                            <li style="float:right;height:45px; line-height:45px;padding-right: 5px;">
                                <ul class="block-options">
                                    {if condition='$setoption.settings==true'}
                                    <li>
                                        <button type="button"><i class="si si-settings"></i></button>
                                    </li>
                                    {/if}
                                    {if condition='$setoption.fullscreen==true'}
                                    <li>
                                        <button type="button" data-toggle="block-option" data-action="fullscreen_toggle"></button>
                                    </li>
                                    {/if}
                                    {if condition='$setoption.refresh==true'}
                                    <li>
                                        <button type="button" data-toggle="block-option" data-action="refresh_toggle" data-action-mode="demo"><i class="si si-refresh"></i></button>
                                    </li>
                                    {/if}
                                    {if condition='$setoption.content==true'}
                                    <li>
                                        <button type="button" data-toggle="block-option" data-action="content_toggle"></button>
                                    </li>
                                    {/if}
                                    {if condition='$setoption.close==true'}
                                    <li>
                                        <button type="button" data-toggle="block-option" data-action="close"><i class="si si-close"></i></button>
                                    </li>
                                    {/if}
                                </ul>
                            </li>
                            {/if}
                            {/notempty}
                        </ul>
                        {/notempty}

                        {block name='top'}{/block}
                        <div class="block-content">
                            {block name='content'}{/block}
                        </div>
                    {empty name="leftblock"} 
                    </div>
                </div>
                    {/empty} 
                {/empty}
             {notempty name="leftblock"}    
            </div>
            </div>
            {/notempty}
            </main>
            {if condition='$setlayout.isview==1'}
            <footer id="page-footer" class="content-mini content-mini-full font-s12 bg-gray-lighter clearfix">
                <div class="pull-right">
                   copyright @XTEAM
                </div>
                <div class="pull-left"> 
                </div>
            </footer>
            {/if}
        </div>
        
    </body>
</html>
{block name="scripts"}{/block}